/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package everest3;

import java.io.Serializable;
import java.math.BigInteger;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author jose
 */
@Entity
@Table(name = "cliente")
@NamedQueries({@NamedQuery(name = "Cliente.findByCliid", query = "SELECT c FROM Cliente c WHERE c.cliid = :cliid"), @NamedQuery(name = "Cliente.findByCliidtipo", query = "SELECT c FROM Cliente c WHERE c.cliidtipo = :cliidtipo"), @NamedQuery(name = "Cliente.findByClinomcomp", query = "SELECT c FROM Cliente c WHERE c.clinomcomp = :clinomcomp"), @NamedQuery(name = "Cliente.findByClidir", query = "SELECT c FROM Cliente c WHERE c.clidir = :clidir"), @NamedQuery(name = "Cliente.findByClitel", query = "SELECT c FROM Cliente c WHERE c.clitel = :clitel"), @NamedQuery(name = "Cliente.findByClimovil", query = "SELECT c FROM Cliente c WHERE c.climovil = :climovil"), @NamedQuery(name = "Cliente.findByCliciudad", query = "SELECT c FROM Cliente c WHERE c.cliciudad = :cliciudad"), @NamedQuery(name = "Cliente.findByClitipousu", query = "SELECT c FROM Cliente c WHERE c.clitipousu = :clitipousu"), @NamedQuery(name = "Cliente.findByClicntprest", query = "SELECT c FROM Cliente c WHERE c.clicntprest = :clicntprest"), @NamedQuery(name = "Cliente.findByProgcodigo", query = "SELECT c FROM Cliente c WHERE c.progcodigo = :progcodigo")})
public class Cliente implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "cliid", nullable = false)
    private Long cliid;
    @Column(name = "cliidtipo", nullable = false)
    private short cliidtipo;
    @Column(name = "clinomcomp")
    private String clinomcomp;
    @Column(name = "clidir")
    private String clidir;
    @Column(name = "clitel")
    private BigInteger clitel;
    @Column(name = "climovil")
    private BigInteger climovil;
    @Column(name = "cliciudad")
    private String cliciudad;
    @Column(name = "clitipousu")
    private Short clitipousu;
    @Column(name = "clicntprest")
    private Short clicntprest;
    @Column(name = "progcodigo", nullable = false)
    private short progcodigo;

    public Cliente() {
    }

    public Cliente(Long cliid) {
        this.cliid = cliid;
    }

    public Cliente(Long cliid, short cliidtipo, short progcodigo) {
        this.cliid = cliid;
        this.cliidtipo = cliidtipo;
        this.progcodigo = progcodigo;
    }

    public Long getCliid() {
        return cliid;
    }

    public void setCliid(Long cliid) {
        this.cliid = cliid;
    }

    public short getCliidtipo() {
        return cliidtipo;
    }

    public void setCliidtipo(short cliidtipo) {
        this.cliidtipo = cliidtipo;
    }

    public String getClinomcomp() {
        return clinomcomp;
    }

    public void setClinomcomp(String clinomcomp) {
        this.clinomcomp = clinomcomp;
    }

    public String getClidir() {
        return clidir;
    }

    public void setClidir(String clidir) {
        this.clidir = clidir;
    }

    public BigInteger getClitel() {
        return clitel;
    }

    public void setClitel(BigInteger clitel) {
        this.clitel = clitel;
    }

    public BigInteger getClimovil() {
        return climovil;
    }

    public void setClimovil(BigInteger climovil) {
        this.climovil = climovil;
    }

    public String getCliciudad() {
        return cliciudad;
    }

    public void setCliciudad(String cliciudad) {
        this.cliciudad = cliciudad;
    }

    public Short getClitipousu() {
        return clitipousu;
    }

    public void setClitipousu(Short clitipousu) {
        this.clitipousu = clitipousu;
    }

    public Short getClicntprest() {
        return clicntprest;
    }

    public void setClicntprest(Short clicntprest) {
        this.clicntprest = clicntprest;
    }

    public short getProgcodigo() {
        return progcodigo;
    }

    public void setProgcodigo(short progcodigo) {
        this.progcodigo = progcodigo;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (cliid != null ? cliid.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof Cliente)) {
            return false;
        }
        Cliente other = (Cliente) object;
        if ((this.cliid == null && other.cliid != null) || (this.cliid != null && !this.cliid.equals(other.cliid))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "everest3.Cliente[cliid=" + cliid + "]";
    }

}
